|
FILE END
This command will return an integer value of one if the file specified by the file number has no more data to read, otherwise zero is returned.
Return Integer=FILE END(File Number)
File Number
Integer
The open file number to use
Will return an integer value of one if the file specified by the file number has no more data to read, otherwise zero is returned
cls
open to read 1,"data.dat"
if file open(1)=1
while file end(1)=0
read string 1,a$
print "string= "+a$
endif
endwhile
close file 1
do
loop
end
FILE Commands Menu
Index
|